home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1987
/
11
/
error.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-10-08
|
616b
|
26 lines
/*-----------------------------------------------------------
error.c
very primitive error handler
William May
303A Ridgefield Circle
Clinton, MA 01510
-----------------------------------------------------------*/
#include <stdio.h>
/*-----------------------------------------------------------
if an error number specified then print it,
otherwise only print the message
-----------------------------------------------------------*/
syserr(errno, s)
int errno;
char *s;
{
if (errno) printf("Error (%d): %s\n", errno, s);
else printf("Error: %s\n", s);
ExitToShell();
}